package org.dromara.hm.domain.vo.saleOrder;

import java.math.BigDecimal;
import java.util.Date;

import org.dromara.hm.domain.HmSupplementaryPickupRecord;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 补充提货记录视图对象 hm_supplementary_pickup_record
 *
 * @author Hzy
 * @date 2025-07-22
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = HmSupplementaryPickupRecord.class)
public class HmSupplementaryPickupRecordVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 补充提货记录ID
     */
    @ExcelProperty(value = "补充提货记录ID")
    private Long supplementaryPickupId;

    /**
     * 原始销售订单ID
     */
    @ExcelProperty(value = "原始销售订单ID")
    private Long originalSaleId;

    /**
     * 原始订单中未提货的产品ID
     */
    @ExcelProperty(value = "原始订单中未提货的产品ID")
    private Long originalProductId;

    /**
     * 原始订单中未提货的产品名称 (冗余)
     */
    @ExcelProperty(value = "原始订单中未提货的产品名称 (冗余)")
    private String originalProductName;

    /**
     * 原始订单中未提货时剩余的数量
     */
    @ExcelProperty(value = "原始订单中未提货时剩余的数量")
    private BigDecimal originalUnfulfilledQuantity;

    /**
     * 实际补充提货的产品ID
     */
    @ExcelProperty(value = "实际补充提货的产品ID")
    private Long supplementaryProductId;

    /**
     * 实际补充提货的产品名称 (冗余)
     */
    @ExcelProperty(value = "实际补充提货的产品名称 (冗余)")
    private String supplementaryProductName;

    /**
     * 实际补充提货的数量
     */
    @ExcelProperty(value = "实际补充提货的数量")
    private BigDecimal supplementaryQuantity;

    /**
     * 补充提货时间
     */
    @ExcelProperty(value = "补充提货时间")
    private Date pickupTime;

    /**
     * 提货店铺ID
     */
    @ExcelProperty(value = "提货店铺ID")
    private Long pickupDeptId;

    /**
     * 提货店铺名称 (冗余)
     */
    @ExcelProperty(value = "提货店铺名称 (冗余)")
    private String pickupDeptName;

    /**
     * 操作人ID
     */
    @ExcelProperty(value = "操作人ID")
    private Long operatorId;

    /**
     * 操作人姓名 (冗余)
     */
    @ExcelProperty(value = "操作人姓名 (冗余)")
    private String operatorName;

    /**
     * 补充提货原因 (例如：原产品缺货，客户同意更换)
     */
    @ExcelProperty(value = "补充提货原因 (例如：原产品缺货，客户同意更换)")
    private String reason;

    /**
     * 证明材料（图片/文档路径）
     */
    @ExcelProperty(value = "证明材料", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "图=片/文档路径")
    private String proofFiles;

    /**
     * 状态（NORMAL正常，CANCELLED作废）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "N=ORMAL正常，CANCELLED作废")
    private String status;

    /**
     * 证明材料文件列表（前端展示用）
     */
    private List<String> proofFileList;


}
